<?php

namespace catchAdmin\phone\request\wechatUserBalance;

use catcher\base\CatchRequest;

class WithdrawIncomeRequest extends CatchRequest
{
    protected $needCreatorId = false;


    protected function rules(): array
    {
        return [
            'wechat_user_bank_id|wechat_user_bank_id' => 'require',
            'num|提现金额'                            => 'require|regex: /^\d+(\.\d{1,2})?$/',
        ];
    }


    protected function message(): array
    {
        // TODO: Implement message() method.
        return [
            'wechat_user_bank_id.require' => '请选择提现银行卡',
            'num.require'                 => '请输入提现金额',
            'num.regex'                   => '金额必须是数字且最多保留两位小数',
        ];
    }

}
